package com.nhjf.model.teachers;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
import com.nhjf.model.student.Student;
import com.nhjf.model.system.User;

@SuppressWarnings("serial")
@Entity
@Table(name = "reviewPainting")
public class ReviewPainting extends BaseModel{
	/**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long id;
	/**
	 * 评分
	 */
	@Column(name = "sccore")
	private Integer sccore;
	/**
	 * 老师id
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "teacherId")
	private Teacher teacher;
	/**
	 * 分类1
	 */
	@Column(name = "typeOne")
	private Long typeOne;
	/**
	 * 分类2
	 */
	@Column(name = "typeTwo")
	private Long typeTwo;
	/**
	 * 介绍作品
	 */
	@Column(name = "introduce")
	private String introduce;
	/**
	 * 状态1未评审2已评审3已退回
	 */
	@Column(name = "status")
	private Integer status;
	/**
	 * 学生id
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userId")
	private User user;
	/**
	 * 范例图片1
	 */
	@Column(name = "picOne")
	private String picOne;
	/**
	 * 范例图片2
	 */
	@Column(name = "picTwo")
	private String picTwo;
	/**
	 * 范例图片3
	 */
	@Column(name = "picThree")
	private String picThree;
	/**
	 * 范例课程id
	 */
	@Column(name = "coursesId")
	private Long coursesId;

	/**
	 * 图片的宽
	 */
	@Column(name = "width")
	private Integer width;
	/**
	 * 图片的高
	 */
	@Column(name = "height")
	private Integer height;

	/**
	 * 改完画地址
	 */
	@Column(name = "changepaintingURL")
	private String changepaintingURL;

	/**
	 * 为改画前的地址
	 */
	@Column(name = "NotchangedURL")
	private String notchangedURL;
	/**
	 * 总评语音
	 */
	@Column(name = "totalcommentsound")
	private String totalcommentsound;
	/**
	 * 发布时间
	 */
	@Column(name = "releasetime")
	private Date releasetime;
	/**
	 * 评审时间
	 */
	@Column(name = "reviewtime")
	private Date reviewtime;
	/**
	 * 1代表是机构作品2代表不是机构作品
	 */
	@Column(name = "isOrganizationPainting")
	private Integer isOrganizationPainting;
	/**
	 * 语音评价
	 */
	@Column(name = "voiceReview")
	private String voiceReview;
	/**
	 * 语音时长
	 */
	@Column(name = "voiceDuration")
	private Integer voiceDuration;
	@Transient
	private String releasedate;
	@Transient
	private String typeOneString;
	@Transient
	private String typeTwoString;
	
	public String getVoiceReview() {
		return voiceReview;
	}
	public void setVoiceReview(String voiceReview) {
		this.voiceReview = voiceReview;
	}
	@Transient
	private Integer isCollectionPaintings=0;
	@Transient
	private String avatar;
	@Transient
	private String nickName;
	public Integer getIsOrganizationPainting() {
		return isOrganizationPainting;
	}
	public void setIsOrganizationPainting(Integer isOrganizationPainting) {
		this.isOrganizationPainting = isOrganizationPainting;
	}
	public Integer getIsCollectionPaintings() {
		return isCollectionPaintings;
	}
	public void setIsCollectionPaintings(Integer isCollectionPaintings) {
		this.isCollectionPaintings = isCollectionPaintings;
	}
	public String getTypeOneString() {
		return typeOneString;
	}
	public void setTypeOneString(String typeOneString) {
		this.typeOneString = typeOneString;
	}
	public String getTypeTwoString() {
		return typeTwoString;
	}
	public void setTypeTwoString(String typeTwoString) {
		this.typeTwoString = typeTwoString;
	}
	public String getReleasedate() {
		return releasedate;
	}
	public void setReleasedate(String releasedate) {
		this.releasedate = releasedate;
	}
	public Date getReleasetime() {
		return releasetime;
	}
	public void setReleasetime(Date releasetime) {
		this.releasetime = releasetime;
	}
	public Date getReviewtime() {
		return reviewtime;
	}
	public void setReviewtime(Date reviewtime) {
		this.reviewtime = reviewtime;
	}
	public String getTotalcommentsound() {
		return totalcommentsound;
	}
	public void setTotalcommentsound(String totalcommentsound) {
		this.totalcommentsound = totalcommentsound;
	}
	public String getChangepaintingURL() {
		return changepaintingURL;
	}
	public void setChangepaintingURL(String changepaintingURL) {
		this.changepaintingURL = changepaintingURL;
	}
	
	public String getNotchangedURL() {
		return notchangedURL;
	}
	public void setNotchangedURL(String notchangedURL) {
		this.notchangedURL = notchangedURL;
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
	public Integer getHeight() {
		return height;
	}
	public void setHeight(Integer height) {
		this.height = height;
	}
	public Long getId() {
		return id;
	}
	public Long getCoursesId() {
		return coursesId;
	}
	public void setCoursesId(Long coursesId) {
		this.coursesId = coursesId;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Integer getSccore() {
		return sccore;
	}
	public void setSccore(Integer sccore) {
		this.sccore = sccore;
	}
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Long getTypeOne() {
		return typeOne;
	}
	public void setTypeOne(Long typeOne) {
		this.typeOne = typeOne;
	}
	public Long getTypeTwo() {
		return typeTwo;
	}
	public void setTypeTwo(Long typeTwo) {
		this.typeTwo = typeTwo;
	}
	public String getIntroduce() {
		return introduce;
	}
	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public String getPicOne() {
		return picOne;
	}
	public void setPicOne(String picOne) {
		this.picOne = picOne;
	}
	public String getPicTwo() {
		return picTwo;
	}
	public void setPicTwo(String picTwo) {
		this.picTwo = picTwo;
	}
	public String getPicThree() {
		return picThree;
	}
	public void setPicThree(String picThree) {
		this.picThree = picThree;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public Integer getVoiceDuration() {
		return voiceDuration;
	}
	public void setVoiceDuration(Integer voiceDuration) {
		this.voiceDuration = voiceDuration;
	}
	
}
